package com.meilai.project.entity.workflow;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * @author 张驰
 * @date 2020/5/28 11:35
 */

@Data
@TableName("wf_data")
@ApiModel(value= "流程数据表",description = "上层表，由于更换模板后，存在一个流程类型多个表单模板的情况，抽出上层表用于统计查询")
public class WFData {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键，自增列")
    private Long id;

    @ApiModelProperty(value = "标题")
    private String title;
    @ApiModelProperty(value = "预设流程id")
    private Long work_flow_default_id;
    @ApiModelProperty(value = "数据表")
    private String data_table;
    @ApiModelProperty(value = "数据表id")
    private Long data_id;
    @ApiModelProperty(value = "状态（0：未提交；1：流程中；2：已通过；3：已删除；4：被退回）")
    private Integer status;
    @ApiModelProperty(value = "当前节点id")
    private String node_id;
    @ApiModelProperty(value = "当前节点显示名称")
    private String node_name;
    @ApiModelProperty(value = "创建时间")
    private Date create_at;
    @ApiModelProperty(value = "最新审批id")
    private Long check_id;
    @ApiModelProperty(value = "最新流转时间")
    private Date flow_at;
    @ApiModelProperty(value = "前一节点id")
    private String prev_node_id;
    @ApiModelProperty(value = "发起人id")
    private Long applyer_id;
    @ApiModelProperty(value = "发起人姓名")
    private String applyer_name;
    @ApiModelProperty(value = "发起人组织id")
    private Long applyer_department_id;
    @ApiModelProperty(value = "发起人组织名")
    private String applyer_department_name;
}
